import api from './api'

// 用户登录
export const login = (data) => {
    return api.post('/consumer/login', data)
}

// 用户注册
export const register = (data) => {
    return api.post('/consumer/register', data)
}

// 获取用户信息
export const getUserInfo = () => {
    return api.get('/consumer/info')
}

// 更新用户信息
export const updateUserInfo = (data) => {
    return api.post('/consumer/updateConsumerInfo', data)
}
